﻿<%@ Page Title="Đăng nhập" Language="C#" MasterPageFile="~/MasterPages/MasterPage.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MenuPlaceHolder" Runat="Server">
    <asp:Menu ID="Menu1" runat="server" CssClass="MainMenu" Orientation="Horizontal">
        <Items>
            <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Trang chủ" Value="HomePage"></asp:MenuItem>
        </Items>
    </asp:Menu>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="SidebarPlaceHolder" Runat="Server">
    <asp:Menu ID="Menu2" runat="server" CssClass="Sidebar">
        <Items>
            <asp:MenuItem NavigateUrl="~/News.aspx" Text="Thông báo" Value="News"></asp:MenuItem>
            <asp:MenuItem NavigateUrl="~/About.aspx" Text="Giới thiệu" Value="About"></asp:MenuItem>
        </Items>
    </asp:Menu>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server">
    
    <table class="LoginForm">
    <caption>Đăng nhập</caption>
    <tr>
        <td colspan="3">
            <asp:RadioButtonList ID="radioUserType" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Selected="True" Value="Student">Sinh viên</asp:ListItem>
                <asp:ListItem Value="Professor">Giảng viên</asp:ListItem>
                <asp:ListItem Value="Principal">Phòng đào tạo</asp:ListItem>
                <asp:ListItem>Admin</asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>
    <tr>
        <td>Tên đăng nhập</td>
        <td>
            <asp:TextBox ID="Username" runat="server"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Username" CssClass="ErrorMessage" ErrorMessage="Nhập tên đăng nhập !">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>Mật khẩu</td>
        <td>
            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Password" CssClass="ErrorMessage" ErrorMessage="Nhập mật khẩu !">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
            <asp:Button ID="btnLogin" runat="server" Text="Đăng nhập" OnClick="btnLogin_Click" />
        </td>
        <td>&nbsp;</td>
    </tr>
</table>
    
</asp:Content>

